package com.client.model.pojo.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *
 * @TableName ar_user
 */
@TableName(value ="ar_user")
@Data
public class ArUser implements Serializable {
    /**
     *
     */
    @TableId(value = "uid")
    private Long uid;
    @TableField(exist = false)
    private String sms;

    /**
     * 手机号
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 用户加密后的密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 用户头像
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 姓名
     */
    @TableField(value = "real_name")
    private String realName;

    /**
     * 身份证号
     */
    @TableField(value = "iden")
    private String iden;

    /**
     * 联系地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 盐
     */
    @TableField(value = "salt")
    private String salt;

    /**
     * 当前用户状态（0:状态正常,1:被锁定24小时,2:是否被禁用）
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 被锁定时间
     */
    @TableField(value = "forbidden_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date forbiddenTime;

    /**
     * 征信分数默认100
     */
    @TableField(value = "credit_num")
    private Integer creditNum;

    /**
     *
     */
    @TableField(value = "remark")
    private Integer remark;

    /**
     *
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     *
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 默认是0值
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
